package com.itheima.d5_Api_System;

import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * Api:exit,currentTimeMills,arraycopy
 */
public class demo {
    public static void main(String[] args) {
        //System.exit("0");//正常终止

        long time = System.currentTimeMillis();//获取的是时间毫秒值

        //数组拷贝
        /**
         * arraycopy(Object array, int srcPos,
         * Object dest, int destPos,
         * int length)
         */
        int[] arr1 = new int[]{10,20,30,40,50,60};
        int[] arr2 = new  int[6];//[0,0,0,0,0,0] ==> [0,0,0,40,50,60]
        System.arraycopy(arr1,3,arr2,3,3);
        System.out.println(Arrays.toString(arr2));//快速打印数组,转化为Arrays
    }
}
